﻿using HBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hCommand{
    public interface Sw {

        public T getById<T>(long id) where T : class;
        public List<T> query<T>(String sql, object obj = null);
        public T queryUnique<T>(String sql, object obj = null) ;

        public bool updateNotNull<T>(T t) where T : class ;
        public bool update<T>(T t) where T : class ;
        public int batchInsert<T>(List<T> entities) where T : class ;
        public long insert<T>(T t) where T : class ;
        public bool delete(BaseEntity t)  ;
        public int exec(string sql, object p) ;
    }
}
